package pers.acp.test.application.test

import com.fasterxml.jackson.databind.util.ClassUtil
import org.junit.jupiter.api.Test
import org.noear.solon.annotation.SolonMain
import pers.acp.test.application.TestSolonApplication

class TestAnnotate {
    @Test
    fun getAnnotate() {
        val annotations = ClassUtil.findClassAnnotations(TestSolonApplication::class.java)
        for (annotation in annotations) {
            println(annotation.annotationClass.qualifiedName)
        }
        println(TestSolonApplication::class.java.getAnnotation(SolonMain::class.java))
        println(TestSolonApplication::class.java.isAnnotationPresent(SolonMain::class.java))
    }
}